package com.charwayh.bean;

import com.charwayh.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @author charwayH
 */
@Component
public class ComsumerComponent {
    // API中的接口
    @Reference(loadbalance = "onlyFirst")
    private HelloService helloService;


    public String sayHello(String name){
        return helloService.sayHello(name);
    }
}
